package com.gumball.states;

import com.gumball.context.GumballMachine;

public class SoldOutState implements State {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6843151288989993398L;
	private transient GumballMachine gumballMachine;

	public SoldOutState(GumballMachine gumballMachine) {
		this.gumballMachine = gumballMachine;
	}

	@Override
	public void insertQuater() {
		System.out.println("Sorry, sold out");
	}

	@Override
	public void ejectQuater() {
		System.out.println("Sorry, sold out");
	}

	@Override
	public void turnCrank() {

		System.out.println("Sorry, sold out");

	}

	@Override
	public void dispense() {
		System.out.println("Sorry, sold out");
	}
	
	public String toString() {
		return "sold out";
	}

}
